function bindPrompt(isPass){
	if('true'== isPass){
		$("#title").html("确认通过授信");
		$("#passDiv").show();
		$("#noPassDiv").hide();
		$("#reason").val("ok");
	}else if('false' ==isPass){
		$("#reason").val("");
		$("#title").html("驳回原因");
		$("#passDiv").hide();
		$("#noPassDiv").show();
		$("#realCredit").val(0);
	}
	$("#isPass").val(isPass);
	
	var sxId = $("#sxId").val();
	$('#my-prompt').modal({
	    relatedTarget: this,
	    closeViaDimmer:false,
	    onConfirm: function(e) {
	    	if('false' == $("#isPass").val() && !$("#reason").val()){
	    		layer.msg("驳回原因不能为空", { icon : 0 });
	    		return;
	    	}
	    	$.ajax({
				url:"audit/auditCreditSx/"+sxId+"/"+$("#isPass").val() +"/"+$("#realCredit").val()+"/"+$("#reason").val()+"/",
				type:"get",
				dataType:"json",
				async:false,
				success:function(data){
					if(data.ret==200 && data.content && data.content.code==10000){
				         layer.msg(data.message, {
		                        icon : 1
		                 });
				         $('#my-prompt').modal('close');
				         loadPage("audit/preAuditUI"); 
					}else{
						var msg;
						if(data.content && data.content.msg){
							msg = data.content.msg;
						}else{
							msg = data.message;
						}
						layer.msg(msg, { icon : 0 });
					}
				},
				error:function(data){
				}  
			});
	    },
	    onCancel: function(e) {
	    }
	  });
	
}  

function check(pic){
	$("#imgId").attr('src',pic); 
	$('#doc-modal-1').modal();
}